import request from '@/utils/request';

/**
 * 获取枚举值
 * @param type 枚举类型
 * @returns Promise
 */
export function getEnums(type: string) {
  return request({
    url: `/system/enums/${type}`,
    method: 'get'
  });
}